<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('详情 ')" />
    <th:block th:include="include :: datetimepicker-css" />
    <link rel="stylesheet" type="text/css" href="../../../../../../..//css/Test.css" />
</head>
<body class="white-bg animated fadeInRight">
<script src="http://code.jquery.com/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<div class="detail col-sm-12 col-xs-12 col-md-12" >
        <p style="margin-top: 10px">
            <nav class="nav" >
                <a href="#" class="nav-item " active-color="orange" id="detail">详情</a>
                <a href="#" class="nav-item" active-color="rebeccapurple" id="schedules">工地安全质量费用表</a>
                <a href="#" class="nav-item" active-color="rebeccapurple" id="contracts">项目合同</a>
                <a href="#" class="nav-item" active-color="rebeccapurple" id="proagr">工程合同及补充协议表</a>
                <span class="nav-indicator"></span>
            </nav>
        </p>
</div>
<div class="detail col-sm-12 col-xs-12 col-md-12" style="margin-bottom: 20px;">
        <p style="margin-top: 10px">
            <nav class="nav">
                <a href="#" class="nav-item" active-color="green"  id="completeds">竣工资料</a>
                <a href="#" class="nav-item" active-color="blue"  id="impl">施工资料</a>
                <a href="#" class="nav-item" active-color="red" id="prolog">计划日志</a>
                <a href="#" class="nav-item" active-color="rebeccapurple" id="problue">工程文件</a>
                <a href="#" class="nav-item" active-color="rebeccapurple" id="payment">付款申请表</a>
                <span class="nav-indicator"></span>
            </nav>
    </p>
</div>

<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-building-edit" th:object="${proCreateBuilding}">
        <input name="pId" th:field="*{pId}" type="hidden">

        <div class="form-group">
            <label class="col-sm-3 control-label is-required">建筑名称：</label>
            <div class="col-sm-8">
                    <input name="pName" th:field="*{pName}" disabled =“disabled” class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">创建时间：</label>
            <div class="col-sm-8">
                <div class="input-group date">
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    <input name="pTime"  disabled =“disabled” th:value="${#dates.format(proCreateBuilding.pTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">建筑地址：</label>
            <div class="col-sm-8">
                <input name="pAddress" disabled =“disabled” th:field="*{pAddress}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">建筑面积：</label>
            <div class="col-sm-8">
                <input name="pArea" disabled =“disabled” th:field="*{pArea}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">建筑层数：</label>
            <div class="col-sm-8">
                <input name="pLayer" disabled =“disabled” th:field="*{pLayer}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">建筑高度：</label>
            <div class="col-sm-8">
                <input name="pHighly" disabled =“disabled” th:field="*{pHighly}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">建筑施工范围：</label>
            <div class="col-sm-8">
                <input name="pScope" disabled =“disabled” th:field="*{pScope}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">水泵房容量：</label>
            <div class="col-sm-8">
                <input name="pWaterpumpCapacity"  disabled =“disabled” th:field="*{pWaterpumpCapacity}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">水泵房位置：</label>
            <div class="col-sm-8">
                <input name="pWaterpumpLocation" disabled =“disabled” th:field="*{pWaterpumpLocation}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">消防控制室位置：</label>
            <div class="col-sm-8">
                <input name="pFireLocation"  disabled =“disabled” th:field="*{pFireLocation}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">消防控制室面积：</label>
            <div class="col-sm-8">
                <input name="pFireArea" disabled =“disabled” th:field="*{pFireArea}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">使用点位联系人：</label>
            <div class="col-sm-8">
                <input name="pUnitContact" disabled =“disabled” th:field="*{pUnitContact}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">联系电话：</label>
            <div class="col-sm-8">
                <input name="pTelephone" disabled =“disabled” th:field="*{pTelephone}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">项目状态：</label>
            <div class="col-sm-8">
                <input name="pState" disabled =“disabled” th:field="*{pState}" class="form-control" type="text" required>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script type="text/javascript">
    var prefix = ctx + "system/building";
    $("#form-building-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-building-edit').serialize());
        }
    }

    $("input[name='pTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
    var bId=[[*{bId}]];
    $("#detail").click(function () {
        location.href="/system/building/detail/"+bId
    })

    $("#completeds").click(function () {
        location.href="/ruoyi/completed/completeds/"+bId
    })

    $("#impl").click(function () {
        location.href="/ruoyi/impl/implss/"+bId
    })

    $("#prolog").click(function () {
        location.href="/ruoyi/log/logs/"+bId
    })

    $("#proagr").click(function () {
        location.href="/ruoyi/agr/agrs/"+bId
    })
    $("#problue").click(function () {
        location.href="/system/blueprint/blueprints/"+bId
    })
    $("#payment").click(function () {
        location.href="/ruoyi/payment/payments/"+bId
    })
    $("#contracts").click(function () {
        location.href="/ruoyi/contract/contracts/"+bId
    })
    $("#schedules").click(function () {
        location.href="/ruoyi/schedule/schedules/"+bId
    })
</script>
</body>
</html>